package com.letfox.statistical.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.statistical.dao.MediaStatisticDao;
import com.letfox.statistical.model.UDMMediaStatistic;
import com.letfox.statistical.service.MediaStatisticService;

@Service
public class MediaStatisticServiceImpl implements MediaStatisticService {


	@Autowired
	private MediaStatisticDao mediaStatisticDao;
	
	
	public int save(UDMMediaStatistic mediaStatistic) {
		
		return mediaStatisticDao.insert(mediaStatistic);
	}

	
	public int update(UDMMediaStatistic mediaStatistic) {
		
		return mediaStatisticDao.update(mediaStatistic);
	}

	
	public int deleteById(Long id) {
		
		return 0;
	}

	
	public int deleteByIds(String ids) {
		
		return 0;
	}

	
	public UDMMediaStatistic getById(Long id) {
		
		return null;
	}

	
	public List<UDMMediaStatistic> getList(Map<String,Object> map){
		
		return mediaStatisticDao.getList(map);
	}

}
